/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.atm.domain;


import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.PrePersist;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Abderahman
 */
@Entity
@Table(name = "PAYBILLS")

@NamedQueries({
    @NamedQuery(name = "payBills.findAll", query = "SELECT p FROM BillPayment p")
//    @NamedQuery(name = "payBills.findAllNew", query = "SELECT c FROM payBills c WHERE c.status = 'New'"),
 //   @NamedQuery(name = "payBills.findByClientId", query = "SELECT c FROM payBills c WHERE c.clientId = :clientId"),
 //   @NamedQuery(name = "payBills.findByName", query = "SELECT c FROM payBills c WHERE c.name = :name"),
 //   @NamedQuery(name = "payBills.findByEmail", query = "SELECT c FROM payBills c WHERE c.email = :email")
})

public class BillPayment implements Serializable  {

    @Id
    @Basic(optional = false)
    @Column(name = "ID")
    private Integer Id;

    @Column(name = "PAYEENAME")
    
    private Integer payeeNumber;

    @Column(name = "CUSTOMERNUMBER", nullable=false)
    @NotNull
    private Integer customerNumber;
}
